package com.ling.pl.security.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author bo.wang
 */
@RequestMapping("/defaultCompany")
@Api(value = "defaultCompany", description = "API")
@RestController("defaultCompanyController")
public class DefaultCompanyController extends BaseDefaultCompanyController {

    Log log = LogFactory.getLog(DefaultCompanyController.class);

    @ApiOperation(value = "检查company是否存在")
    @RequestMapping(value = "/checkCompanyExist", method = RequestMethod.GET)
    public String checkCompanyExist(String id) {
        return defaultCompanyService.checkCompanyExist(id);
    }

}

